package com.red.star.wechat.data.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @ProjectName: macalline-data-server$
 * @Package: com.red.star.macalline.data.entity$
 * @Description: 券包组与券包关联实体
 * @Author: xuquanyu
 * @CreateDate: 2018/9/7$ 下午18:19$
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CouponPackageRelation", description = "券包组与券包关联实体")
@Table(name = "t_package_coupon_relation")
public class CouponPackageRelation {
    /**
     * 组合券包id
     */
    @ApiModelProperty(value = "组合券包id")
    private Integer packageCouponId;

    /**
     * 券id
     */
    @ApiModelProperty(value = "券id")
    private Integer couponId;

    /**
     * 兑换数量
     */
    @ApiModelProperty(value = "兑换数量", example= "0")
    private Integer count;

    /**
     * 券名称
     */
    @Transient
    @ApiModelProperty(value = "券名称")
    private String couponName;

}
